#include <string>
#include <cstring>

#include "Export.h"

using std::string;

static inline string *sp(void *ptr)
{
  return reinterpret_cast<string *>(ptr);
}

DFhackCExport const char *strings_c_str(void *ptr)
{
  return sp(ptr)->c_str();
}

DFhackCExport size_t strings_size(void *ptr)
{
  return sp(ptr)->size();
}
